using System;
using System.Threading;
using System.Net;

namespace kinova_driver
{
	class MainClass
	{
		public static void Main (string[] args)
		{	
			Console.BackgroundColor = ConsoleColor.DarkMagenta;
	
			kinovaDriver kd;
			kd = new kinovaDriver("C6H12O6h2so4", IPAddress.Broadcast, 3315);
			if(kd.init())
			{
				System.Console.WriteLine("\ninfo->KinovaDriver have been initated successfully\n");
				kd.stopArm();
				
				
			}
			kd.checkIsReady();
			string cmd  = "";
			while(!cmd.Equals("e")  )
			{
				Console.Write("Enter your command : ");
				cmd =  Console.ReadLine();
			}
			Console.WriteLine("Destructing Kinova...");
			kd.Dispose();
			//while(true){}
		}
	}
}
